package cn.wolfcode.plus.service.impl;

import cn.wolfcode.plus.domain.Employee;
import cn.wolfcode.plus.mapper.EmployeeMapper;
import cn.wolfcode.plus.qo.PageResult;
import cn.wolfcode.plus.qo.QueryObject;
import cn.wolfcode.plus.service.IEmployeeService;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * Author wyy
 * Date 2021/2/8 18:21
 **/
@Service
public class EmployeeServiceImpl extends ServiceImpl<EmployeeMapper, Employee>
        implements IEmployeeService {
    @Override
    public PageResult<Employee> query(QueryObject qo) {
        return new PageResult<>(this.baseMapper.selectByAnnoJoinDept(new Page<>(qo.getCurrentPage(),qo.getPageSize()),null));
    }

    @Override
    public Employee checkLogin(String username, String password) {

        return null;
    }
}
